<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="utf-8">
  <head>
    <meta content="text/html;charset=utf-8" http-equiv="content-type"/>
    <title>放假多背一公斤</title>
    <meta name="author" content="Suave Su" />
    <meta name="keywords" content="大学生, 放假, 回乡, 图书室, 多背一公斤, college, 1kg.org" />
    <meta name="description" content="We encourage colleges find poor school in their hometown while they are in winter & summer vocation, 1 more kg could gather volunteers' goods & love to help schools." />
    <link href="/stylesheets/base.css" type="text/css" rel="stylesheet"></link>
    <%= javascript_include_tag :defaults %>
  </head>
  <body>
  <div id="container">
    <div id="nav">
      <ul class="title">
        <li class="home"><a href="/"><em>放假多背一公斤</em></a></li>
        <li class="rss"><a href="http://fangjia.1kg.org"><img src="/images/rss.gif" /></a></li>
      </ul>
      <ul class="user">
        <% unless logged_in? -%>
          <li><a href="/signup"><img src="/images/user_add.png" />注册新用户</a></li>
          <li><a href="/login"><img src="/images/user.png" />登录</a></li>
        <% else -%>
          <li><a href="/logout"><img src="/images/user_delete.png" />登出</a></li>
          <li><a href="/profile"><img src="/images/user_edit.png" />修改个人资料</a></li>
          <li><%= link_to h(current_user.login), user_path(current_user.id) %></li>
        <% end -%>
      </ul>
    </div>
    <div id="panorama">
      <img src="/images/luoping2.jpg" alt="放假回乡，成为多背一公斤志愿者" />
    </div>
    <% if flash[:notice] -%>
			<div class="flashNotice"><%= flash[:notice] %></div>
		<% end -%>
    <%= yield :layout %>
    <div id="footer">
      <span>&copy; 2008 <a href="http://1kg.org" target="_blank">多背一公斤</a></span>
    </div>
  </div>
  </body>
</html>